<template>
 <view class="container ">   
 <view class="flex    diygw-col-24  justify-center  flex-nowrap  flex6-clz">  
  <view class="flex diygw-col-3  avatar3-clz"> 
   <view class="diygw-avatar  sm  white  radius   "> 
    <text class="diy-icon-back_android"></text> 
   </view> 
  </view>  
  <view class="   diygw-col-0  text10-clz ">
    {{business.data.data.businessList.userName}} 
  </view> 
 </view>   
 <view class="flex    diygw-col-24  justify-around  flex-nowrap  flex8-clz">  
  <view class="flex diygw-col-0  justify-center"> 
   <view class="diygw-avatar  xs    radius   bg-none"> 
    <image mode="aspectFit" class="diygw-avatar-img radius" :src="business.data.data.businessList.tx"></image> 
   </view> 
  </view>   
  <view class="flex    diygw-col-24  flex-direction-column  justify-start  flex-wrap  flex-clz">   
   <view class="flex   flex-wrap diygw-col-0  flex1-clz">  
    <view class="   diygw-col-0  text-clz ">
      {{business.data.data.businessList.userName}} 
    </view>  
    <view class="   diygw-col-0 ">
      已帮扶5家企业 
    </view> 
   </view>   
   <view class="flex   flex-wrap diygw-col-0  flex2-clz">  
    <view class="   diygw-col-0 ">
      {{business.data.data.businessList.busName}} 
    </view> 
   </view>   
   <view class="flex   flex-wrap diygw-col-0  flex3-clz">  
    <view class="   diygw-col-0  text4-clz ">
      管理时长： 
    </view>  
    <view class="   diygw-col-0 ">
      {{business.data.data.businessList.manageTime}} 
    </view> 
   </view>   
   <view class="flex   flex-wrap diygw-col-0  flex4-clz">  
    <view class="   diygw-col-0  text6-clz ">
      资金评分： 
    </view>  
    <view class="   diygw-col-0 ">
      9 
    </view> 
   </view> 
  </view>   
  <view class="flex    diygw-col-0  justify-end  items-end  flex-nowrap  flex5-clz">  
   <view class="flex diygw-col-0  justify-end  avatar1-clz"> 
    <view class="diygw-avatar  xs    radius   "> 
     <text class="diy-icon-commentfill"></text> 
    </view> 
   </view>  
   <view class="   diygw-col-0  text8-clz ">
     256 
   </view> 
  </view> 
 </view>   
 <view class="flex   flex-wrap diygw-col-24  flex-direction-column  flex10-clz">  
  <view class="   diygw-col-24  text9-clz ">
    2020-03-19 8:19 
  </view>   
  <view class="flex   flex-wrap diygw-col-24  justify-start  flex7-clz">  
   <view class="flex diygw-col-0"> 
    <view class="diygw-avatar      radius   bg-none"> 
     <image mode="aspectFit" class="diygw-avatar-img radius" src="/static/grid1.png"></image> 
    </view> 
   </view>  
   <view class="   diygw-col-0  text11-clz ">
     你好，希望有机会和你沟通一下，小罐绿茶项目 
   </view> 
  </view>   
  <view class="flex   flex-wrap diygw-col-24  justify-end  flex9-clz">  
   <view class="   diygw-col-0  text13-clz ">
     你好，小罐绿茶项目 
   </view>  
   <view class="flex diygw-col-0"> 
    <view class="diygw-avatar      radius   bg-none"> 
     <image mode="aspectFit" class="diygw-avatar-img radius" src="/static/grid1.png"></image> 
    </view> 
   </view> 
  </view> 
 </view>   
 <view class="clearfix"></view> 
</view>
</template>

<script>
 //create by: 邓志锋 <280160522@qq.com> <https://www.diygw.com> DIYGW可视化设计一键生成源码
 export default {
  data() {
   return {
    //用户全局信息
    userInfo:{},
    business:{
    "code": "200",
    "data": {
        "data": {
            "businessList": {
                "businessTippingList": [
                    {
                        "busId": "434437408591446017",
                        "price": "19999999",
                        "busName": "测试企业",
                        "id": "434444372742766593",
                        "userName": "123",
                        "userId": "434444372742504449"
                    }
                ],
                "tx": "./image",
                "userPhone": "123",
                "busName": "测试企业",
                "userName": "企业家1",
                "busResource": "一家公司",
                "businessHelpList": [
                    {
                        "busId": "434437408591446017",
                        "busName": "测试企业",
                        "id": "11",
                        "projectName": "作业帮",
                        "projectId": "434440356570595329"
                    }
                ],
                "manageTime": "7",
                "businessScoreList": [
                    {
                        "busId": "434437408591446017",
                        "resource": "9",
                        "busName": "测试企业",
                        "id": "1",
                        "experience": "9",
                        "userName": "222",
                        "cash": "9",
                        "userId": "434443977751527426"
                    }
                ],
                "id": "434437408591446017",
                "busType": "制造业",
                "busdesc": "我是一个企业家",
                "businessCommentList": [
                    {
                        "busId": "434437408591446017",
                        "businessName": "测试企业",
                        "comment": "123",
                        "id": "434443664980967425",
                        "userName": "123",
                        "userId": "434443664980705281"
                    }
                ],
                "status": "审核不通过"
            }
        },
        "initData": {
            "businessList": {
                "businessHelp": {
                    "busId": "",
                    "busName": "",
                    "projectName": "",
                    "projectId": ""
                },
                "businessTipping": {
                    "busId": "",
                    "price": "",
                    "busName": "",
                    "userName": "",
                    "userId": ""
                },
                "businessComment": {
                    "busId": "",
                    "commentDate": "",
                    "businessName": "",
                    "comment": "",
                    "userName": "",
                    "userId": ""
                },
                "businessList": {
                    "tx": "",
                    "userPhone": "",
                    "busName": "",
                    "manageTime": "",
                    "busType": "",
                    "busdesc": "",
                    "userName": "",
                    "busCard": "",
                    "busResource": "",
                    "status": ""
                },
                "businessScore": {
                    "busId": "",
                    "resource": "",
                    "busName": "",
                    "experience": "",
                    "userName": "",
                    "cash": "",
                    "userId": ""
                }
            }
        },
        "permission": {
            "businessList": {
                "businessHelp": {
                    "busId": "r",
                    "busName": "r",
                    "projectName": "r",
                    "projectId": "r"
                },
                "businessTipping": {
                    "busId": "r",
                    "price": "r",
                    "busName": "r",
                    "userName": "r",
                    "userId": "r"
                },
                "businessComment": {
                    "busId": "r",
                    "commentDate": "r",
                    "businessName": "r",
                    "comment": "r",
                    "userName": "r",
                    "userId": "r"
                },
                "businessList": {
                    "tx": "r",
                    "userPhone": "r",
                    "busName": "r",
                    "manageTime": "r",
                    "busType": "r",
                    "busdesc": "r",
                    "userName": "r",
                    "busCard": "r",
                    "busResource": "r",
                    "status": "r"
                },
                "businessScore": {
                    "busId": "r",
                    "resource": "r",
                    "busName": "r",
                    "experience": "r",
                    "userName": "r",
                    "cash": "r",
                    "userId": "r"
                }
            }
        },
        "tablePermission": {
            "businessList": {
                "businessHelp": "r",
                "businessTipping": "r",
                "businessComment": "r",
                "businessList": "r",
                "businessScore": "r"
            }
        }
    },
    "isOk": true
},
   }
  },
  onShow(){
   this.setCurrentPage(this)
   
  },
  onLoad(option) {
   this.setCurrentPage(this)
   if (option) {
    this.setData({
     globalOption: this.getOption(option)
    })
   }
   
   this.init();
  },
  methods:{
   async init(){
    await this.businessApi()
   },
   // 企业家详情 API请求方法
   async businessApi(){
    let business = await this.$http.post('https://agent.diygw.com/',{
     url:'/form/formDefData/getData',
     method:'post',
     headers: {
      'Content-Type':'application/x-www-form-urlencoded',
     },
     'key':        'business_list'
,
     'id':        this.globalOption.id||'434437408591446017'
,
     'isReadOnly':        true

    },{
     'Content-type': 'application/json',
    },'json');
    this.business = business
   },
  }
 }
</script>

<style  lang="scss" scoped>
 .flex6-clz{margin-left:5px;padding-top:0px;padding-left:0px;width:calc(100.0% - 5px - 5px) !important;font-size:15px;padding-bottom:0px;margin-top:10px;margin-bottom:10px;border-bottom:1px solid #eee ;margin-right:5px;padding-right:0px}.avatar3-clz{padding-top:7px;font-weight:bold;padding-left:0px;font-size:16px;padding-bottom:0px;padding-right:0px}.text10-clz{padding-top:8px;font-weight:bold;padding-left:0px;padding-bottom:0px;text-align:center;padding-right:0px}.flex8-clz{border:1px solid #eee ;padding-top:0px;border-bottom-left-radius:6px;padding-left:0px;padding-bottom:0px;border-top-right-radius:6px;margin-right:5px;margin-left:5px;box-shadow:0px 1px 3px  rgba(31, 31, 31, 0.16);overflow:hidden;width:calc(100.0% - 5px - 5px) !important;border-top-left-radius:6px;margin-top:5px;border-bottom-right-radius:6px;margin-bottom:5px;padding-right:0px}.flex-clz{margin-left:15px;width:calc(100.0% - 15px - 5px) !important;margin-top:5px;margin-bottom:5px;margin-right:5px}.text-clz{font-weight:bold}.text2-clz{font-weight:bold}.text4-clz{font-weight:bold}.text6-clz{font-weight:bold}.avatar1-clz{margin-left:5px;background-size:100% 100%;margin-top:15px;margin-bottom:5px;margin-right:0px}.text8-clz{margin-left:5px;margin-top:5px;margin-bottom:10px;margin-right:5px}.flex10-clz{margin-left:5px;width:calc(100.0% - 5px - 5px) !important;margin-top:20px;margin-bottom:5px;margin-right:5px}.text9-clz{margin-left:5px;padding-top:0px;padding-left:0px;width:calc(100.0% - 5px - 5px) !important;padding-bottom:0px;margin-top:5px;margin-bottom:5px;text-align:center;margin-right:5px;padding-right:0px}.flex7-clz{margin-left:10px;padding-top:0px;padding-left:0px;width:calc(100.0% - 10px - 15px) !important;padding-bottom:0px;margin-top:15px;margin-bottom:15px;margin-right:15px;padding-right:0px}.text11-clz{margin-left:15px;border:1px solid #eee ;padding-top:0px;box-shadow:0px 2px 3px  rgba(31, 31, 31, 0.16);overflow:hidden;padding-left:0px;padding-bottom:0px;margin-top:20px;margin-bottom:5px;margin-right:20px;padding-right:0px}.flex9-clz{margin-left:10px;padding-top:0px;padding-left:0px;width:calc(100.0% - 10px - 15px) !important;padding-bottom:0px;margin-top:15px;margin-bottom:15px;margin-right:15px;padding-right:0px}.text13-clz{margin-left:20px;border:1px solid #eee ;padding-top:0px;box-shadow:0px 2px 3px  rgba(31, 31, 31, 0.16);overflow:hidden;padding-left:0px;padding-bottom:0px;margin-top:20px;margin-bottom:5px;margin-right:15px;padding-right:0px}.container{
      padding-left: 0px;
      padding-right: 0px;
      
      
      
      
      
      font-size:12px;
      
  }.container{


  }
</style>


